package com.huaao.micropolice.root.controllers.content;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.huaao.micropolice.core.model.content.Content;
import com.huaao.micropolice.core.model.system.Dept;
import com.huaao.micropolice.core.service.content.ContentService;
import com.huaao.micropolice.core.service.system.DeptService;
import com.huaao.micropolice.root.controllers.BaseController;

@Controller
@RequestMapping("tag")
public class TagController extends BaseController{

	
	@RequestMapping("tree")
	public String tree(String id,String url,String jsonRoot,String parentIdKey){
		request.setAttribute("id", id);
		request.setAttribute("url", url);
		request.setAttribute("jsonRoot", jsonRoot);
		request.setAttribute("parentIdKey", parentIdKey);
		return "alert/tree";
	}
	
	@RequestMapping("map")
	public String map(String id,String locationValue,String addressValue ){
		request.setAttribute("id", id);
		request.setAttribute("locationValue", locationValue);
		request.setAttribute("addressValue", addressValue);
		return "alert/map";
	}
	

}
